<layout name="Layout/main" />
<form action="{:U('auser/add')}" method='post' class="form-horizontal"
	role="form">
	
	<div class="form-group">
		<label class="col-sm-1 control-label">用户名称:</label>
		<div class="col-sm-3">
			<input type='text' class="form-control" value="{$user.adm_name}" name="adm_name" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">角色状态:</label>
		<div class="col-sm-3">
			<label class="radio-inline"> <input type='radio'
				name='status' value="1"  <if condition="$user['status'] eq 1">checked=checked</if> />开启
			</label> <label class="radio-inline"> <input type='radio'
				name='status' value="0" <if condition="$user['status'] eq 0">checked=checked</if> />禁止
			</label>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-1 control-label">所属角色:</label> 
		<div class="col-sm-2">
		<select name="role"  class="form-control">
		<notempty name="role">
		<volist name="role" id="vo">
			<option value="{$vo.id}"  <notempty name="user['role']"><if condition="$user['role'][0]['id'] eq $vo['id']">selected="selected"</if></notempty> >{$vo.name}</option>
			</volist>
			</notempty>
			
		</select>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-1 control-label">登陆密码:</label> 
		<div class="col-sm-3">
			<input type='text' class="form-control"  name="adm_password" />
		</div>
	</div>
	<div class="form-group"></div>
	<div class="form-group">
		<div class="col-sm-3">
			<button type='submit'
				class="col-sm-offset-2  col-sm-5 btn btn-success">添加</button>
		</div>
	</div>

</form>